var e = getApp();

Page({
    data: {
        details: {},
        markers: [],
        circles: []
    },
    onLoad: function(e) {
        this.getDetails(e.id);
    },
    getDetails: function(t) {
        var a = this, o = e.getNetAddresss("plugin.city-delivery.frontend.order.getDeliveryMessage");
        e._postNetWork({
            url: o,
            data: {
                order_id: t
            },
            success: function(e) {
                var t = e.data;
                1 == t.result && a.setData({
                    details: t.data
                }, function() {
                    a.setMap();
                });
            }
        });
    },
    setMap: function() {
        var e = this.data.details, t = {
            longitude: e.another_order.rider_lng,
            latitude: e.another_order.rider_lat,
            width: 33,
            height: 45,
            iconPath: "./orderLogisticsDetails_position.png"
        }, a = {
            longitude: e.another_order.rider_lng,
            latitude: e.another_order.rider_lat,
            fillColor: "#67b5ec4D",
            color: "#67b5ec",
            radius: 50
        };
        this.setData({
            markers: [ t ],
            circles: [ a ]
        });
    },
    makePhoneCall: function() {
        wx.makePhoneCall({
            phoneNumber: this.data.details.another_order.rider_phone
        });
    },
    setClipboardData: function() {
        wx.setClipboardData({
            data: this.data.details.another_order.another_order_sn
        });
    },
    onReady: function() {},
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {}
});